//
//  SDPageDataPool.h
//  SDDataTest
//
//  Created by sodao on 12-9-27.
//  Copyright (c) 2012年 sodao. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface SDPageDataPool : NSObject
{
    int                 pageIndex;
    NSMutableArray*     pageValueArray;
    NSDate*             lastUpdateTime;
    int                 count;
    
    id                  lastObject;
    id                  fristObject;
    
    NSString*           pagePoolName;
    
    int                 pageSize;
    BOOL                hasNextPage;
}

@property (nonatomic, retain) id            lastObject;
@property (nonatomic, retain) id            fristObject;
@property (nonatomic, retain) NSString*     pagePoolName;
@property (nonatomic, retain) NSDate*       lastUpdateTime;
@property (nonatomic, retain) NSMutableArray*   pageValueArray;
@property (nonatomic)         int           pageIndex;
@property (nonatomic)         int           count;
@property (nonatomic)         int           pageSize;
@property (nonatomic) BOOL                hasNextPage;


-(id)initWithArray:(NSArray*)array
           pageIndex:(int)index
            lastDate:(NSDate*)date
                name:(NSString*)name;

-(void)addValues:(NSArray*)array;
-(NSArray*)getPageData:(int)index size:(int)pagesize;
-(void)cleanDataPool;
-(id)objectAtIndex:(int)index;
-(int)indexOfObject:(id)obj;
-(void)insertObject:(id)object atIndex:(NSUInteger)index;
-(void)removeObject:(id)obj;
-(void)removeObjectAtIndex:(int)index;






@end
